Information sharing method, information sharing apparatus, and electronic device

ABSTRACT

Embodiments of the present invention provide an information sharing method, an information sharing apparatus, and an electronic device. The method is implemented by a first electronic device. The method includes: when it is detected that an electronic device binding option built in a browser is triggered, retrieving a dialog box built in the browser, where at least one electronic device binding function option may be set in the dialog box; when it is detected that an electronic device binding function option is triggered, executing a corresponding electronic device binding function in the background, and sending first information to a server; and after the server determines that a preset correspondence exists between second information sent by a second electronic device and the first information and establishes a binding relationship between the first electronic device and the second electronic device, sharing information between the first electronic device and the second electronic device. Embodiments of the present invention implement information sharing between electronic devices in a browser interface, thereby implementing convenient information sharing, and moreover ensuring accuracy of information sharing.

RELATED APPLICATION

This application claims priority to PCT Application No.PCT/CN2015/070074, filed on Jan. 4, 2015, which claims priority toChinese Patent Application No. 2014100106044, entitled “InformationSharing Method, Information Sharing Apparatus, and Electronic Device,”filed on Jan. 9, 2014. The applications are incorporated by reference intheir entirety.

FIELD OF THE TECHNOLOGY

The present disclosure relates to the technical field of informationsharing, and more particularly to an information sharing method, aninformation sharing apparatus, and an electronic device.

BACKGROUND

Information sharing between electronic devices refers to transfer ofinformation between at least two electronic devices bound to each other;and a binding operation between electronic devices is an important stepfor implementing information sharing between the electronic devices.Binding of electronic devices is to establish a correspondence and anassociation between at least two electronic devices, and confirmation ofa sending device and a receiving device for information to be shared isimplemented by using the established correspondence and association, toimplement accurate sharing of the information to be shared.

In the process of research and practice, with the wide use of browsers,it becomes a need to implement information sharing between electronicdevices in a browser interface. However, currently a binding operationbetween electronic devices is performed outside a browser interface;therefore, currently there is still no method for implementinginformation sharing between electronic devices in a browser interface,and it becomes a problem needing an urgent solution from a personskilled in the art to provide a method for implementing informationsharing between electronic devices in a browser interface.

SUMMARY

In view of this, embodiments of the present invention provide aninformation sharing method, an information sharing apparatus, and anelectronic device, to implement information sharing between electronicdevices in a browser interface.

To implement the foregoing objective, the embodiments of the presentinvention provide the following technical solutions:

An information sharing method, applied to a first electronic device. Themethod includes the following steps.

When it is detected that an electronic device binding option built in abrowser is triggered, retrieving a dialog box built in the browser,where at least one electronic device binding function option may be setin the dialog box, and one electronic device binding function optioncorresponds to triggering of one electronic device binding function.

When it is detected that an electronic device binding function option istriggered, executing a corresponding electronic device binding functionin the background, and sending first information to a server.

After the server determines that a preset correspondence exists betweensecond information sent by a second electronic device and the firstinformation and establishes a binding relationship between the firstelectronic device and the second electronic device, sharing informationbetween the first electronic device and the second electronic device.

An embodiment of the present invention further provides an informationsharing apparatus, applied to a first electronic device. The apparatusincludes the following.

A first detection module, configured to detect whether an electronicdevice binding option built in a browser is triggered.

A dialog box retrieval module, configured to: when the first detectionmodule detects that the electronic device binding option built in thebrowser is triggered, retrieve a dialog box built in the browser, whereat least one electronic device binding function option may be set in thedialog box, and one electronic device binding function optioncorresponds to triggering of one electronic device binding function.

A second detection module, configured to detect whether an electronicdevice binding function option is triggered.

A binding function execution module, configured to: when the seconddetection module detects that an electronic device binding functionoption is triggered, execute a corresponding electronic device bindingfunction in the background.

A sending module, configured to send first information to a server.

An information sharing module, configured to: after the serverdetermines that a preset correspondence exists between secondinformation sent by a second electronic device and the first informationand establishes a binding relationship between the first electronicdevice and the second electronic device, perform information sharingbetween the first electronic device and the second electronic device.

An embodiment of the present invention further provides an electronicdevice, including the foregoing information sharing apparatus.

Based on the foregoing technical solution, in the information sharingmethod provided in embodiments of the present invention, when anelectronic device binding option built in a browser is triggered, adialog box built in the browser is retrieved. When an electronic devicebinding function option in the dialog box is triggered, a correspondingelectronic device binding function is executed in the background, andfirst information is sent to a server. After the server determines thata preset correspondence exists between second information sent by asecond electronic device and the first information and establishes abinding relationship between a first electronic device and the secondelectronic device, information sharing is performed between the firstelectronic device and the second electronic device.

In the information sharing method provided in embodiments of the presentinvention, a binding relationship between electronic devices may beestablished in a browser interface, to implement information sharingbetween electronic devices in a browser interface. Embodiments of thepresent disclosure enable information sharing between electronic devicesin a browser interface. Therefore, information sharing betweenelectronic devices becomes more convenient. Moreover, the server is usedto perform confirmation on the correspondence between the firstinformation sent by the first electronic device and the secondinformation sent by the second electronic device, thereby ensuringaccuracy of binding between the first electronic device and the secondelectronic device, and ensuring accuracy of a receiver and a sender ininformation sharing.

BRIEF DESCRIPTION OF THE DRAWINGS

To illustrate the technical solutions in the embodiments of the presentinvention or in the prior art more clearly, drawings required indescription of the embodiments or the prior art will be introducedsimply in the following. It is obvious that the drawings in thefollowing description are only some of the embodiments of the presentinvention, and a person of ordinary skill in the art may obtain otherdrawings based on the drawings without creative efforts.

FIG. 1 is a flowchart of an information sharing method provided in anembodiment of the present invention;

FIG. 2 is another flowchart of an information sharing method provided inan embodiment of the present invention;

FIG. 3 is still another flowchart of an information sharing methodprovided in an embodiment of the present invention;

FIG. 4 is yet another flowchart of an information sharing methodprovided in an embodiment of the present invention;

FIG. 5 is still yet another flowchart of an information sharing methodprovided in an embodiment of the present invention;

FIG. 6 is a structural block diagram of an information sharing apparatusprovided in an embodiment of the present invention;

FIG. 7 is a structural block diagram of a binding function executionmodule provided in an embodiment of the present invention;

FIG. 8 is a structural block diagram of a sending module provided in anembodiment of the present invention;

FIG. 9 is another structural block diagram of a binding functionexecution module provided in an embodiment of the present invention;

FIG. 10 is another structural block diagram of a sending module providedin an embodiment of the present invention;

FIG. 11 is still another structural block diagram of a binding functionexecution module provided in an embodiment of the present invention;

FIG. 12 is still another structural block diagram of a sending moduleprovided in an embodiment of the present invention;

FIG. 13 is still yet another structural block diagram of a bindingfunction execution module provided in an embodiment of the presentinvention;

FIG. 14 is still yet another structural block diagram of a sendingmodule provided in an embodiment of the present invention; and

FIG. 15 is a structural diagram of hardware of an electronic deviceprovided in an embodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages in theembodiments of the present invention clearer, the following clearly andcompletely describes the technical solutions in the embodiments of thepresent invention with reference to the accompanying drawings in theembodiments of the present invention. Apparently, the describedembodiments are some of the embodiments of the present invention ratherthan all of the embodiments. All other embodiments obtained by a personof ordinary skill in the art based on the embodiments of the presentinvention without creative efforts shall fall within the protectionscope of the present invention.

FIG. 1 is a flowchart of an information sharing method provided in anembodiment of the present invention. The method may be used by a firstelectronic device, and the first electronic device may be any electronicdevice in a browser open state. Referring to FIG. 1, the method mayinclude the following steps.

Step S100: Determine whether it is detected that an electronic devicebinding option built in a browser is triggered, and if yes, execute stepS110, or if not, execute step S100.

In this embodiment of the present invention, one option may be set inthe browser to correspond to an electronic device binding operation.When the option is triggered, it may be determined that the firstelectronic device currently needs to perform a binding operation withanother electronic device. Optionally, a user may trigger the electronicdevice binding option by using a click operation. After the user clicksthe electronic device binding option, the first electronic device maygenerate corresponding electronic device binding option clickinformation, and detection of triggering of the electronic devicebinding option may be implemented by detecting whether electronic devicebinding option click information is generated.

Step S110: Retrieve a dialog box built in the browser, where at leastone electronic device binding function option may be set in the dialogbox, and one electronic device binding function option corresponds totriggering of one electronic device binding function.

Optionally, in this embodiment of the present invention, a dialog boxmay be built in the browser. When the electronic device binding optionclick information is detected, retrieve the built-in dialog box, whereat least one electronic device binding function option may be set in thedialog box, and one electronic device binding function optioncorresponds to triggering of one electronic device binding function,that is, after an electronic device binding function option is clickedby a user, the first electronic device executes a correspondingelectronic device binding function.

Optionally, for an electronic device binding function, an electronicdevice binding function may be implemented by using a 2D code, anelectronic device binding function may be implemented by using a signal,an electronic device binding function may be implemented by usingLocation Based Services (LBS), and the like.

Step S120: Determine whether an electronic device binding functionoption is triggered, and if yes, execute step S130, or if not, repeatstep S120.

Step S130: Execute a corresponding electronic device binding function inthe background, and send first information to a server.

In this embodiment of the present invention, the content of the firstinformation may be adaptively adjusted and changed according todifferent executed electronic device binding functions.

Step S140: After the server determines that a preset correspondenceexists between second information sent by a second electronic device andthe first information and establishes a binding relationship between thefirst electronic device and the second electronic device, performinformation sharing between the first electronic device and the secondelectronic device.

The second electronic device may be any electronic device that needs toestablish a binding relationship with the first electronic device toperform information sharing.

The shared information may be webpage information of a browser orelectronic device information that can be retrieved by a browser, forexample, audio information, video information, text information, orimage information.

In this embodiment of the present invention, the content of the secondinformation may be adjusted according to the adjustment of the firstinformation, and the preset correspondence may be adjusted and changedaccording to different executed electronic device binding functions.

In the information sharing method provided in the embodiment of thepresent invention, when an electronic device binding option built in abrowser is triggered, a dialog box built in the browser is retrieved,when an electronic device binding function option in the dialog box istriggered, a corresponding electronic device binding function isexecuted in the background, and first information is sent to a server,and after the server determines that a preset correspondence existsbetween second information sent by a second electronic device and thefirst information and establishes a binding relationship between a firstelectronic device and the second electronic device, information sharingis performed between the first electronic device and the secondelectronic device. In the information sharing method provided in theembodiment of the present invention, a binding relationship betweenelectronic devices may be established in a browser interface, toimplement information sharing between electronic devices through abrowser interface, thereby solving a problem in which informationsharing between electronic devices cannot be implemented in a browserinterface because currently a binding operation between electronicdevice is performed outside a browser interface. Therefore, informationsharing between electronic devices becomes more convenient. Moreover,the server is used to perform confirmation on the correspondence betweenthe first information sent by the first electronic device and the secondinformation sent by the second electronic device, thereby ensuringaccuracy of binding between the first electronic device and the secondelectronic device, and ensuring accuracy of a receiver and a sender ininformation sharing.

Optionally, in an embodiment of the present invention, binding between afirst electronic device and a second electronic device may beimplemented by using a 2D code function, to implement informationsharing. Correspondingly, FIG. 2 shows another procedure of aninformation sharing method provided in the embodiment of the presentinvention. Referring to FIG. 2, the method may include the followingsteps.

Step S200: Determine whether it is detected that an electronic devicebinding option built in a browser is triggered, and if yes, execute stepS210, or if not, execute step S200.

Step S210: Retrieve a dialog box built in the browser, where at leastone electronic device binding function option may be set in the dialogbox, and one electronic device binding function option corresponds totriggering of one electronic device binding function.

Step S220: Determine whether an electronic device binding functionoption is triggered, and if yes, execute step S230, or if not, executestep S220.

Step S230: Generate a 2D code having first electronic device identifierrepresentation information in the background, and send first informationincluding the first electronic device identifier representationinformation and first electronic device identifier information to aserver.

Optionally, the generated 2D code may be displayed in a child dialog boxof the dialog box. The first electronic device identifier informationmay be information such as a device ID and an IP address that canuniquely represent the identity of the first electronic device. Thefirst electronic device identifier representation information may beinformation that uniquely corresponds to the first electronic deviceidentifier information. For example, it may be set that the firstelectronic device identifier representation information 001 uniquelycorresponds to the first electronic device identifier information, thatis, in the server, 001 can no longer correspond to another piece ofelectronic device identifier information.

Step S240: After it is determined at the server that a presetcorrespondence exists between the first information and secondinformation that is sent by the second electronic device and includesfirst electronic device identifier representation information and abinding relationship is established between the first electronic deviceand the second electronic device, perform information sharing betweenthe first electronic device and the second electronic device.

Optionally, the preset correspondence may be that the first electronicdevice identifier representation information in the second informationand the first electronic device identifier representation information inthe first information are same and match each other.

Optionally, after the first electronic device generates the 2D codehaving the first electronic device identifier representationinformation, the second electronic device may scan the 2D code, anddetermine the first electronic device identifier representationinformation by using the 2D code. After determining the first electronicdevice identifier representation information, the second electronicdevice may send the second information including the first electronicdevice identifier representation information to the server. Afterreceiving the second information that is sent by the second electronicdevice and includes the first electronic device identifierrepresentation information, the server may detect whether the firstelectronic device identifier representation information in the firstinformation and the first electronic device identifier representationinformation in the second information match each other (becauseinformation in the 2D code is easily tampered with, it is detected atthe server whether the first electronic device identifier representationinformation saved in advance in the server and the first electronicdevice identifier representation information sent by the secondelectronic device match each other to determine whether the identity ofthe second electronic device is valid, that is, whether the secondelectronic device is the device that has scanned the 2D code, therebyensuring accuracy of device binding). After determining that they matcheach other, the server may determine that a preset correspondence existsbetween the second information and the first information, and when abrowser of the second electronic device is in an open state, the serversends the first electronic device identifier information to the secondelectronic device, to establish a binding relationship between the firstelectronic device and the second electronic device, or, sends the secondelectronic device identifier information included in the secondinformation to the first electronic device, to establish a bindingrelationship between the first electronic device and the secondelectronic device.

Optionally, if the server implements establishment of a bindingrelationship between the first electronic device and the secondelectronic device in the manner of sending the first electronic deviceidentifier information to the second electronic device, the secondinformation sent by the second electronic device to the server mayfurther include browser switch state information. When determining thatthe browser switch state information and the browser open stateinformation correspond to each other, the server may determine whetherthe second electronic device is currently in a browser open state, andmay send the first electronic device identifier information to thesecond electronic device, to display the first electronic deviceidentifier in a device list binding dialog box of a browser of thesecond electronic device. The second electronic device may send, byusing the first electronic device identifier information, information tobe shared to the server corresponding to sharing, to share, with thefirst electronic device by using the server corresponding to sharing,the information to be shared.

Optionally, the second information may also include the secondelectronic device identifier information, and the server may send thesecond electronic device identifier information to the first electronicdevice, to display the second electronic device identifier in a devicelist binding dialog box of a browser of the first electronic device. Thefirst electronic device may send, by using the second electronic deviceidentifier information, information to be shared to the servercorresponding to sharing, to share, with the second electronic device byusing the server corresponding to sharing, the information to be shared.

Optionally, the foregoing manner of implementing binding betweenelectronic devices by using a 2D code may also be performed in a case inwhich the first electronic device is disconnected from a network. Afterscanning the 2D code, the second electronic device may upload the firstelectronic device identifier representation information to the server,and the server may determine, in a case in which a network connection ofthe first electronic device is restored, that a preset correspondenceexists between the first information and the second information, toestablish a binding relationship between the first electronic device andthe second electronic device.

Optionally, in an embodiment of the present invention, binding between afirst electronic device and a second electronic device may beimplemented by using a signal function, to implement informationsharing. Correspondingly, FIG. 3 shows still another procedure of aninformation sharing method provided in the embodiment of the presentinvention. Referring to FIG. 3, the method may include the followingsteps.

Step S300: Determine whether it is detected that an electronic devicebinding option built in a browser is triggered, and if yes, execute stepS310, or if not, execute step S300.

Step S310: Retrieve a dialog box built in the browser, where at leastone electronic device binding function option may be set in the dialogbox, and one electronic device binding function option corresponds totriggering of one electronic device binding function.

Step S320: Determine whether an electronic device binding functionoption is triggered, and if yes, execute step S330, or if not, executestep S320.

Step S330: Send a signal including first electronic device identifierrepresentation information in the background, so that the secondelectronic device in a signal monitoring state monitors the signal, andsends first information including the first electronic device identifierrepresentation information and first electronic device identifierinformation to a server.

Optionally, the dialog box may be used to present a state of sending asignal, and after receiving the signal, the second electronic device maysend reception confirmation information to the first electronic device,to change a presented state of the signal in the dialog box to“received”.

Step S340: After the server determines that a preset correspondenceexists between the first information and the second information that issent by the second electronic device and includes first electronicdevice identifier representation information and establishes a bindingrelationship between the first electronic device and the secondelectronic device, perform information sharing between the firstelectronic device and the second electronic device.

Optionally, the preset correspondence may be that the first electronicdevice identifier representation information in the first informationand the first electronic device identifier representation information inthe second information match each other.

Optionally, after monitoring the signal, the second electronic devicemay obtain the first electronic device identifier representationinformation by parsing the signal. After determining the firstelectronic device identifier representation information, the secondelectronic device may send the second information including the firstelectronic device identifier representation information to the server.After receiving the second information that is sent by the secondelectronic device and includes the first electronic device identifierrepresentation information, the server may detect whether the firstelectronic device identifier representation information in the firstinformation and the first electronic device identifier representationinformation in the second information match each other (accuracy ofdevice binding is ensured by using the mechanism). After determiningthat they match each other, the server may determine that a presetcorrespondence exists between the second information and the firstinformation, and when a browser of the second electronic device is in anopen state, the server sends the first electronic device identifierinformation to the second electronic device, to establish a bindingrelationship between the first electronic device and the secondelectronic device, or, sends the second electronic device identifierinformation included in the second information to the first electronicdevice, to establish a binding relationship between the first electronicdevice and the second electronic device.

Optionally, the foregoing manner of implementing binding betweenelectronic devices by using a signal may also be performed in a case inwhich the first electronic device is disconnected from a network. Aftermonitoring a signal, the second electronic device may upload the firstelectronic device identifier representation information to the server,and the server may determine, in a case in which a network connection ofthe first electronic device is restored, that a preset correspondenceexists between the first information and the second information, toestablish a binding relationship between the first electronic device andthe second electronic device.

Optionally, in an embodiment of the present invention, binding betweenelectronic devices may be implemented by using a LBS function.Correspondingly, FIG. 4 shows yet another procedure of an informationsharing method provided in the embodiment of the present invention.Referring to FIG. 4, the method may include:

Step S400: Determine whether it is detected that an electronic devicebinding option built in a browser is triggered, and if yes, execute stepS410, or if not, repeat step S400.

Step S410: Retrieve a dialog box built in the browser, where at leastone electronic device binding function option may be set in the dialogbox, and one electronic device binding function option corresponds totriggering of one electronic device binding function.

Step S420: Determine whether an electronic device binding functionoption is triggered, and if yes, execute step S430, or if not, executestep S420.

Step S430: Open an LBS function in the background, and send firstinformation including location information of a first electronic device,browser open state information, and first electronic device identifierinformation to a server.

Step S440: After the server determines that a preset correspondenceexists between the first information and second information that is sentby a second electronic device and includes second location informationand browser switch state information and establishes a bindingrelationship between the first electronic device and the secondelectronic device, perform information sharing between the firstelectronic device and the second electronic device.

Optionally, the preset correspondence may be that a locationcorresponding to the location information of the first electronic deviceand a location corresponding to location information of the secondelectronic device meet a preset location relationship, and the browserswitch state information and the browser open state informationcorrespond to each other.

Optionally, when the first electronic device opens an LBS function, thesecond electronic device may open an LBS function, and send the locationinformation of the second electronic device and the browser switch stateinformation to a server. The server may compare a location correspondingto the received location information of the first electronic device witha location corresponding to the location information of the secondelectronic device. If a location relationship between the firstelectronic device and the second electronic device meets a presetlocation relationship (for example, the distance between the locationsmeets a preset range) and when it may be determined by using the browserswitch state information that a browser of the second electronic deviceis in an open state, the server may determine that a correspondence maybe established between the first electronic device and the secondelectronic device. The server may send first electronic deviceidentifier information to the second electronic device, and display thefirst electronic device identifier in a device list binding dialog boxof the browser of the second electronic device, to enable the secondelectronic device to send, by using the first electronic deviceidentifier information, information to be shared to the servercorresponding to sharing, to share, with the first electronic device byusing the server corresponding to information sharing, the informationto be shared; or, the second information may also include the secondelectronic device identifier information, and the server may also sendthe second electronic device identifier information to the firstelectronic device, and display the second electronic device identifierin a device list binding dialog box of the browser of the firstelectronic device, to enable the first electronic device to send, byusing the second electronic device identifier information, informationto be shared to the server corresponding to sharing, and share, with thesecond electronic device by using the server corresponding toinformation sharing, the information to be shared.

Optionally, in an embodiment of the present invention, binding between afirst electronic device and a second electronic device may further beperformed by using a same login account. Correspondingly, FIG. 5 showsstill yet another procedure of an information sharing method provided inthe embodiment of the present invention. Referring to FIG. 5, the methodmay include the following steps.

Step S500: Determine whether it is detected that an electronic devicebinding option built in a browser is triggered, and if yes, execute stepS510, or if not, execute step S500.

Step S510: Retrieve a dialog box built in the browser, where at leastone electronic device binding function option may be set in the dialogbox, and one electronic device binding function option corresponds totriggering of one electronic device binding function.

Step S520: Determine whether an electronic device binding functionoption is triggered, and if yes, execute step S530, or if not, executestep S520.

Step S530: Obtain a user account of the first electronic device toperform account login, and send first information including user accountinformation of the first electronic device and first electronic deviceidentifier information to a server.

The user account of the first electronic device may be obtained to login to the browser, or to log in to another application.

Step S540: After the server determines a preset correspondence existsbetween the first information and second information that is sent by thesecond electronic device and includes user account information of thesecond electronic device and establishes a binding relationship betweenthe first electronic device and the second electronic device, performinformation sharing between the first electronic device and the secondelectronic device.

Optionally, the preset correspondence may be that the user accountinformation of the second electronic device and the user accountinformation of the first electronic device are same.

Optionally, when determining that the first electronic device and thesecond electronic device use a same user account to log in to a sameapplication, the server may determine that the first electronic deviceand the second electronic device have a binding relationship. When abrowser of the second electronic device is in an open state, the servermay send the first electronic device identifier information to thesecond electronic device, to display the first electronic deviceidentifier in a device list binding dialog box of the browser of thesecond electronic device. The second electronic device may send, byusing the first electronic device identifier information, information tobe shared to the server corresponding to sharing, to share, with thefirst electronic device by using the server corresponding to informationsharing, the information to be shared. Optionally, the second electronicdevice may send browser switch state information to the server, todetermine, by using the browser switch state information, whether thebrowser of the second electronic device is in an open state.

Optionally, the second information may also include the secondelectronic device identifier information, and the server may send thesecond electronic device identifier information to the first electronicdevice, to display the second electronic device identifier in a devicelist binding dialog box of a browser of the first electronic device. Thefirst electronic device may send, by using the second electronic deviceidentifier information, information to be shared to the servercorresponding to sharing, to share, with the second electronic device byusing the server corresponding to information sharing, information to beshared.

Optionally, after a binding relationship is established between thefirst electronic device and the second electronic device, the firstelectronic device and the second electronic device may share, by usingthe server, information that can be retrieved by the browser.

Optionally, the first electronic device may establish bindingrelationships with multiple electronic devices in multiple bindingmanners described above, and the identifier of each bound electronicdevice may be displayed in a device list binding dialog box of thebrowser of the first electronic device.

In the information sharing method provided in this embodiment of thepresent invention, information sharing between electronic devices isimplemented in a browser interface, thereby implementing convenientinformation sharing between electronic devices, and moreover ensuringaccuracy of a receiver and a sender in information sharing.

An information sharing apparatus provided in an embodiment of thepresent invention is introduced below, and for the information sharingapparatus described below and the information sharing method describedabove, reference may be made to each other.

FIG. 6 is a structural block diagram of an information sharing apparatusprovided in the embodiment of the present invention. The informationsharing apparatus may be used by a first electronic device. Referring toFIG. 6, the information sharing apparatus may include the followingcomponents.

A first detection module 100 is configured to detect whether anelectronic device binding option built in a browser is triggered.

A dialog box retrieval module 200 is configured to: when the firstdetection module 100 detects that the electronic device binding optionbuilt in the browser is triggered, retrieve a dialog box built in thebrowser, where at least one electronic device binding function optionmay be set in the dialog box, and one electronic device binding functionoption corresponds to triggering of one electronic device bindingfunction.

A second detection module 300 is configured to detect whether anelectronic device binding function option is triggered.

A binding function execution module 400 is configured to: when thesecond detection module 300 detects that the electronic device bindingfunction option is triggered, execute a corresponding electronic devicebinding function in the background.

A sending module 500 is configured to send first information to aserver.

An information sharing module 600 is configured to: after the serverdetermines that a preset correspondence exists between secondinformation sent by a second electronic device and the first informationand establishes a binding relationship between the first electronicdevice and the second electronic device, perform information sharingbetween the first electronic device and the second electronic device.

Optionally, in this embodiment of the present invention, binding betweenthe first electronic device and the second electronic device may beimplemented by using a 2D code function, to implement informationsharing. Correspondingly, FIG. 7 shows an optional structure of thebinding function execution module 400. Referring to FIG. 7, the bindingfunction execution module 400 may include:

A first execution unit 410 is configured to generate a 2D code havingfirst electronic device identifier representation information in thebackground, and display the 2D code in a child dialog box of the dialogbox.

Correspondingly, FIG. 8 shows an optional structure of the sendingmodule 500. Referring to FIG. 8, the sending module 500 may include thefollowing components.

A first sending unit 510 is configured to send first informationincluding the first electronic device identifier representationinformation and first electronic device identifier information to aserver.

Correspondingly, after the second electronic device scans the 2D codeand determines the first electronic device identifier representationinformation, the server may receive second information that is sent bythe second electronic device and includes first electronic deviceidentifier representation information. If the first electronic deviceidentifier representation information in the first information and thefirst electronic device identifier representation information in thesecond information match each other, the server may determine that apreset correspondence exists between the second information and thefirst information. When a browser of the second electronic device is inan open state, the server may send the first electronic deviceidentifier information to the second electronic device, to establish abinding relationship between the first electronic device and the secondelectronic device, or, the server may send the second electronic deviceidentifier information included in the second information to the firstelectronic device, to establish a binding relationship between the firstelectronic device and the second electronic device. After a bindingrelationship is established between the first electronic device and thesecond electronic device, the information sharing module 600 may performinformation sharing between the first electronic device and the secondelectronic device.

Optionally, in this embodiment of the present invention, binding betweenthe first electronic device and the second electronic device may beimplemented by using a signal function, to implement informationsharing. Correspondingly, FIG. 9 shows another optional structure of thebinding function execution module 400. Referring to FIG. 9, the bindingfunction execution module 400 may include the following components,

A second execution unit 420 is configured to send a signal including thefirst electronic device identifier representation information in thebackground, so that the second electronic device in a signal monitoringstate monitors the signal.

Correspondingly, FIG. 10 shows another optional structure of the sendingmodule 500. Referring to FIG. 10, the sending module 500 may include:

A second sending unit 520 is configured to send first informationincluding the first electronic device identifier representationinformation and first electronic device identifier information to aserver.

Correspondingly, after the second electronic device in a signalmonitoring state monitors the signal and determines the first electronicdevice identifier representation information, the server may receivesecond information that is sent by the second electronic device andincludes first electronic device identifier representation information.If the first electronic device identifier representation information inthe first information and the first electronic device identifierrepresentation information in the second information match each other,the server may determine that a preset correspondence exists between thesecond information and the first information. When a browser of thesecond electronic device is in an open state, the server may send thefirst electronic device identifier information to the second electronicdevice, to establish a binding relationship between the first electronicdevice and the second electronic device, or, the server may send thesecond electronic device identifier information included in the secondinformation to the first electronic device, to establish a bindingrelationship between the first electronic device and the secondelectronic device. After a binding relationship is established betweenthe first electronic device and the second electronic device, theinformation sharing module 600 may perform information sharing betweenthe first electronic device and the second electronic device.

Optionally, in this embodiment of the present invention, binding betweenelectronic devices may be implemented by using an LBS function.Correspondingly, FIG. 11 shows still another optional structure of thebinding function execution module 400. Referring to FIG. 11, the bindingfunction execution module 400 may include the following components.

A third execution unit 430 is configured to open an LBS function in thebackground.

Correspondingly, FIG. 12 shows still another optional structure of thesending module 500. Referring to FIG. 12, the sending module 500 mayinclude:

A third sending unit 530 is configured to send first informationincluding location information of the first electronic device, browseropen state information, and first electronic device identifierinformation to a server.

Correspondingly, the server may receive second information that is sentby the second electronic device in which an LBS function is opened andincludes location information of the second electronic device andbrowser switch state information. If a location corresponding to firstlocation information and a location corresponding to second locationinformation meet a preset location relationship, and the browser switchstate information and the browser open state information correspond toeach other, the server may determine that a preset correspondence existsbetween the second information and the first information. The server maysend the first electronic device identifier information to the secondelectronic device, to establish a binding relationship between the firstelectronic device and the second electronic device, or, the server maysend the second electronic device identifier information included in thesecond information to the first electronic device, to establish abinding relationship between the first electronic device and the secondelectronic device. After a binding relationship is established betweenthe first electronic device and the second electronic device, theinformation sharing module 600 may perform information sharing betweenthe first electronic device and the second electronic device.

Optionally, in this embodiment of the present invention, binding betweenthe first electronic device and the second electronic device may furtherbe performed by using a same login account. Correspondingly, FIG. 13shows still yet another optional structure of the binding functionexecution module 400. Referring to FIG. 13, the binding functionexecution module 400 may include the following components.

A fourth execution unit 440 is configured to obtain a user account ofthe first electronic device to perform account login.

Correspondingly, FIG. 14 shows still yet another optional structure ofthe sending module 500. Referring to FIG. 14, the sending module 500 mayinclude the following.

A fourth sending unit 540 is configured to send first informationincluding user account information of the first electronic device andfirst electronic device identifier information to a server.

Correspondingly, after the second electronic device obtains a useraccount of the second electronic device to perform account login, theserver may receive second information that is sent by the secondelectronic device and includes user account information of the secondelectronic device. If the user account information of the firstelectronic device and the user account information of the secondelectronic device are same, the server may determine that a presetcorrespondence exists between the second information and the firstinformation. When a browser of the second electronic device is in anopen state, the server may send the first electronic device identifierinformation to the second electronic device, to establish a bindingrelationship between the first electronic device and the secondelectronic device, or, the server may send the second electronic deviceidentifier information included in the second information to the firstelectronic device, to establish a binding relationship between the firstelectronic device and the second electronic device.

In the information sharing method provided in this embodiment of thepresent invention, information sharing between electronic devices isimplemented in a browser interface, thereby implementing convenientinformation sharing between electronic devices, and moreover ensuringaccuracy of a receiver and a sender in information sharing.

An embodiment of the present invention further provides an electronicdevice, including the foregoing information sharing apparatus. Referencemay be made to the above description of a corresponding part fordetailed description of the information sharing apparatus, which is nolonger described here.

A hardware structure of the electronic device provided in thisembodiment of the present invention is introduced below. FIG. 15 is astructural diagram of hardware of the electronic device provided in thisembodiment of the present invention. Referring to FIG. 15, theelectronic device may include: a communications interface 1, a memory 2,a processor 3, and a communications bus 4.

Each constituent part of the electronic device is introduced in detailbelow with reference to FIG. 15.

The communications interface 1 may be an interface for a communicationsmodule, for example, an interface for a network card, and is configuredto implement reception and sending of signals in a process that theelectronic device performs information reception and transmission withan external device. The communications interface 1 may also be a browseror other user interfaces.

The memory 2 may be configured to store a software program and module.The processor 3 runs the software program and module stored in thememory 2 to execute various functional applications and data processingof the electronic device. The memory 2 may mainly include a programstorage region and a data storage region, where the program storageregion may store an operating system, an application program (forexample, an audio playing function and an image playing function)required for at least one function, and the like, and the data storageregion may store data (for example, audio data and an address book)created according to the use of the electronic device. In addition, thememory 2 may include a high-speed random access memory, and may furtherinclude a nonvolatile memory, for example, at least one disk storagedevice, a flash memory device or another volatile solid-state storagedevice.

In embodiments of the present disclosure, the modules described in FIGS.6-14 are computer programs that may be store in memory 2.

The processor 3 is a control center of the electronic device and isconnected to each part of the entire electronic device by using variousinterfaces and circuits, and executes various functions and processingdata of the electronic device by running or executing the softwareprogram and/or module stored in the memory 2 and invoking data stored inthe memory 2, to perform overall monitoring on the electronic device.Optionally, the processor 3 may include one or more processing units.Preferably, the processor 3 may integrate an application processor and amodem processor, where the application processor mainly processes anoperating system and application programs, whereas the modem processormainly processes wireless communication. It may be understood that theforegoing modem processor may also be not integrated in the processor 3.

The communications interface 1, the memory 2, and the processor 3accomplish communication each other by using the communications bus 4.

In this embodiment of the present invention, the processor 3 may executecomputer programs stored in memory 2, such as the modules described inFIGS. 6-14 to implement the following functions.

When it is detected that an electronic device binding option built in abrowser is triggered, retrieving a dialog box built in the browser,where at least one electronic device binding function option may be setin the dialog box, and one electronic device binding function optioncorresponds to triggering of one electronic device binding function.

When it is detected that an electronic device binding function option istriggered, executing a corresponding electronic device binding functionin the background, and sending first information to a server.

After the server determines that a preset correspondence exists betweensecond information sent by a second electronic device and the firstinformation and establishes a binding relationship between a firstelectronic device and the second electronic device, sharing informationbetween the first electronic device and the second electronic device.

The embodiments in this specification are described in a progressivemanner, each embodiment focuses on a difference from other embodiments,and for same or similar parts in the embodiments, reference may be madeto these embodiments. Apparatuses disclosed in the embodimentscorrespond to methods disclosed in the embodiments, and therefore aredescribed briefly; for related parts, reference may be made to partialdescriptions in the methods.

A person skilled in the art may be further aware that, in combinationwith the examples described in the embodiments disclosed in thisspecification, units and algorithm steps may be implemented byelectronic hardware, computer software, or a combination thereof. Toclearly describe the interchangeability between the hardware and thesoftware, the foregoing has generally described compositions and stepsof each example according to functions. Whether the functions areperformed by hardware or software depends on particular applications anddesign constraint conditions of the technical solutions. A personskilled in the art may use different methods to implement the describedfunctions for each particular application, but it should not beconsidered that the implementation goes beyond the scope of the presentinvention.

In combination with the description in the embodiments disclosed in thisspecification, method or algorithm steps may be directly implemented byhardware, a software module executed by a processor, or a combinationthereof. The software module may be placed in a random access memory(RAM), a memory, a read-only memory (ROM), an electrically programmableROM, an electrically erasable programmable ROM, a register, a hard disk,a removable disk, a CD-ROM, or any other form of storage medium known inthe technical field.

The foregoing description of the disclosed embodiments enables a personskilled in the art to implement or use the present invention. It isapparent to a person skilled in the art to make various changes to theseembodiments. The general concept defined in the specification may beimplemented in other embodiments without departing from the spirit andscope of the present invention. Therefore, the present invention is notlimited to these embodiments shown in the specification, and instead isto meet the widest range consistent with the principles and novelfeatures disclosed in the specification.

What is claimed is:
 1. An information sharing method, used by a firstelectronic device, the first electronic device having one or moreprocessors and memory for storing one or more programs to be executed bythe one or more processors, the method comprising: retrieving a dialogbox built in a browser, when an electronic device binding option builtin the browser is triggered, the dialog box set with at least oneelectronic device binding function option, and one electronic devicebinding function option corresponding to triggering of one electronicdevice binding function; executing a corresponding electronic devicebinding function in the background, and sending a first information to aserver, when it is detected that an electronic device binding functionoption is triggered; establishing a binding relationship between thefirst electronic device and a second electronic device, after the serverdetermines that a preset correspondence exists between secondinformation sent by the second electronic device and the firstinformation; and sharing information between the first electronic deviceand the second electronic device, wherein: the executing thecorresponding electronic device binding function in the backgroundcomprises: obtaining a user account of the first electronic device toperform account login; the first information comprises: a user accountinformation of the first electronic device and a first electronic deviceidentifier information; and the sending first information to the servercomprises: sending the first information comprising the user accountinformation of the first electronic device and the first electronicdevice identifier information to the server.
 2. The information sharingmethod according to claim 1, wherein the executing the correspondingelectronic device binding function in the background comprises:generating a 2D code having a first electronic device identifierrepresentation information in the background, and displaying the 2D codein a child dialog box of the dialog box; the first informationcomprises: the first electronic device identifier representationinformation, the user account information and the first electronicdevice identifier information; and the sending first information to aserver comprises: sending the first information comprising the firstelectronic device identifier representation information, the useraccount information and the first electronic device identifierinformation to the server.
 3. The information sharing method accordingto claim 2, wherein that the server determines that the presetcorrespondence exists between the second information sent by the secondelectronic device and the first information and establishes the bindingrelationship between the first electronic device and the second devicecomprises: after the second electronic device scans the 2D code anddetermines the first electronic device identifier representationinformation, receiving the second information that is sent by the secondelectronic device and comprises the first electronic device identifierrepresentation information; if the first electronic device identifierrepresentation information in the first information and the firstelectronic device identifier representation information in the secondinformation match each other, determining that the preset correspondenceexists between the second information and the first information; andwhen a browser of the second electronic device is in an open state,sending the first electronic device identifier information to the secondelectronic device, to establish the binding relationship between thefirst electronic device and the second electronic device; or, sendingthe second electronic device identifier information comprised in thesecond information to the first electronic device, to establish thebinding relationship between the first electronic device and the secondelectronic device.
 4. The information sharing method according to claim1, wherein the executing the corresponding electronic device bindingfunction in the background comprises: sending a signal including a firstelectronic device identifier representation information in thebackground, so that the second electronic device in a signal monitoringstate monitors the signal; the first information comprises: the firstelectronic device identifier representation information, the useraccount information and the first electronic device identifierinformation; and the sending first information to a server comprises:sending the first information comprising the first electronic deviceidentifier representation information, the user account information andthe first electronic device identifier information to the server.
 5. Theinformation sharing method according to claim 4, wherein that the serverdetermines that the preset correspondence exists between the secondinformation sent by the second electronic device and the firstinformation and establishes the binding relationship between the firstelectronic device and the second device comprises: after the secondelectronic device in a signal monitoring state monitors the signal anddetermines the first electronic device identifier representationinformation, receiving the second information that is sent by the secondelectronic device and comprises the first electronic device identifierrepresentation information; if the first electronic device identifierrepresentation information in the first information and the firstelectronic device identifier representation information in the secondinformation match each other, determining that the preset correspondenceexists between the second information and the first information; andwhen a browser of the second electronic device is in an open state,sending the first electronic device identifier information to the secondelectronic device, to establish the binding relationship between thefirst electronic device and the second electronic device; or, sendingthe second electronic device identifier information comprised in thesecond information to the first electronic device, to establish thebinding relationship between the first electronic device and the secondelectronic device.
 6. The information sharing method according to claim1, wherein the executing the corresponding electronic device bindingfunction in the background comprises: opening a Location Based Services(LBS) function in the background; the first information comprises: alocation information of the first electronic device, a browser openstate information, the user account information and the first electronicdevice identifier information; and the sending first information to aserver comprises: sending the first information comprising the locationinformation of the first electronic device, the browser open stateinformation, the user account information and the first electronicdevice identifier information to the server.
 7. The information sharingmethod according to claim 6, wherein that the server determines that thepreset correspondence exists between the second information sent by thesecond electronic device and the first information and establishes thebinding relationship between the first electronic device and the seconddevice comprises: receiving the second information that is sent by thesecond electronic device in which an LBS function is opened andcomprises the location information of the second electronic device and abrowser switch state information; if a location corresponding to firstlocation information and a location corresponding to second locationinformation meet a preset location relationship, and the browser switchstate information and the browser open state information correspond toeach other, determining that the preset correspondence exists betweenthe second information and the first information; and sending the firstelectronic device identifier information to the second electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device; or, sending thesecond electronic device identifier information comprised in the secondinformation to the first electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device.
 8. The information sharing method according to claim1, wherein that the server determines that the preset correspondenceexists between the second information sent by the second electronicdevice and the first information and establishes the bindingrelationship between the first electronic device and the second devicecomprises: after the second electronic device obtains a user account ofthe second electronic device to perform account login, receiving thesecond information that is sent by the second electronic device and thesecond information comprising a user account information of the secondelectronic device; if the user account information of the firstelectronic device and the user account information of the secondelectronic device are same, determining that the preset correspondenceexists between the second information and the first information; andwhen a browser of the second electronic device is in an open state,sending the first electronic device identifier information to the secondelectronic device, to establish the binding relationship between thefirst electronic device and the second electronic device; or, sendingthe second electronic device identifier information comprised in thesecond information to the first electronic device, to establish thebinding relationship between the first electronic device and the secondelectronic device.
 9. An information sharing apparatus, applied to afirst electronic device, the apparatus comprising: one or moreprocessors; and memory storing one or more programs for execution by theone or more processors, the one or more programs including instructionsfor: retrieving a dialog box built in a browser, when it is detectedthat an electronic device binding option built in the browser istriggered, the dialog box set with at least one electronic devicebinding function option, and one electronic device binding functionoption corresponding to triggering of one electronic device bindingfunction; executing a corresponding electronic device binding functionin the background, and sending a first information to a server, when itis detected that an electronic device binding function option istriggered; establishing a binding relationship between the firstelectronic device and a second electronic device, after the serverdetermines that a preset correspondence exists between secondinformation sent by the second electronic device and the firstinformation; and sharing information between the first electronic deviceand the second electronic device, wherein: the executing thecorresponding electronic device binding function in the backgroundcomprises: obtaining a user account of the first electronic device toperform account login; the first information comprises: a user accountinformation of the first electronic device and a first electronic deviceidentifier information; and the sending first information to the servercomprises: sending the first information comprising the user accountinformation of the first electronic device and the first electronicdevice identifier information to the server.
 10. The information sharingapparatus according to claim 9, wherein the operations further comprise:after the second electronic device obtains a user account of the secondelectronic device to perform account login, receiving the secondinformation that is sent by the second electronic device and comprises auser account information of the second electronic device; if the useraccount information of the first electronic device and the user accountinformation of the second electronic device are same, determining thatthe preset correspondence exists between the second information and thefirst information; and when a browser of the second electronic device isin an open state, sending the first electronic device identifierinformation to the second electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device, or, sending the second electronic device identifierinformation comprised in the second information to the first electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device.
 11. The informationsharing apparatus according to claim 9, wherein the operations furthercomprise: generating a 2D code having a first electronic deviceidentifier representation information in the background, and displayingthe 2D code in a child dialog box of the dialog box; sending the firstinformation comprising the first electronic device identifierrepresentation information, the user account information and the firstelectronic device identifier information to the server; and after thesecond electronic device scans the 2D code and determines the firstelectronic device identifier representation information, receiving thesecond information that is sent by the second electronic device andcomprises the first electronic device identifier representationinformation; if the first electronic device identifier representationinformation in the first information and the first electronic deviceidentifier representation information in the second information matcheach other, determining that the preset correspondence exists betweenthe second information and the first information; and when a browser ofthe second electronic device is in an open state, sending the firstelectronic device identifier information to the second electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device, or, sending thesecond electronic device identifier information comprised in the secondinformation to the first electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device.
 12. The information sharing apparatus according toclaim 9, wherein the operations further comprise: sending a signalincluding a first electronic device identifier representationinformation in the background, so that the second electronic device in asignal monitoring state monitors the signal; sending the firstinformation comprising the first electronic device identifierrepresentation information, the user account information and the firstelectronic device identifier information to the server; and after thesecond electronic device in a signal monitoring state monitors thesignal and determines the first electronic device identifierrepresentation information, receiving the second information that issent by the second electronic device and comprises the first electronicdevice identifier representation information; if the first electronicdevice identifier representation information in the first informationand the first electronic device identifier representation information inthe second information match each other, determining that the presetcorrespondence exists between the second information and the firstinformation; and when a browser of the second electronic device is in anopen state, sending the first electronic device identifier informationto the second electronic device, to establish the binding relationshipbetween the first electronic device and the second electronic device,or, sending the second electronic device identifier informationcomprised in the second information to the first electronic device, toestablish the binding relationship between the first electronic deviceand the second electronic device.
 13. The information sharing apparatusaccording to claim 9, wherein the operations further comprise: opening aLocation Based Services (LBS) function in the background; sending thefirst information comprising a location information of the firstelectronic device, a browser open state information, the user accountinformation and the first electronic device identifier information tothe server; and receiving the second information that is sent by thesecond electronic device in which an LBS function is opened andcomprises the location information of the second electronic device and abrowser switch state information; if a location corresponding to firstlocation information and a location corresponding to second locationinformation meet a preset location relationship, and the browser switchstate information and the browser open state information correspond toeach other, determining that the preset correspondence exists betweenthe second information and the first information; and sending the firstelectronic device identifier information to the second electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device, or, sending thesecond electronic device identifier information comprised in the secondinformation to the first electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device.
 14. A non-transitory computer readable storage mediumhaving instructions stored thereon, the instructions, when executed byone or more processors, cause the processors to perform operationscomprising: retrieving a dialog box built in a browser, when it isdetected that an electronic device binding option built in the browseris triggered, the dialog box set with at least one electronic devicebinding function option, and one electronic device binding functionoption corresponding to triggering of one electronic device bindingfunction; executing a corresponding electronic device binding functionin the background, and sending a first information to a server, when itis detected that an electronic device binding function option istriggered; and establishing a binding relationship between the firstelectronic device and a second electronic device, after the serverdetermines that a preset correspondence exists between secondinformation sent by the second electronic device and the firstinformation; and sharing information between the first electronic deviceand the second electronic device, wherein: the executing thecorresponding electronic device binding function in the backgroundcomprises: obtaining a user account of the first electronic device toperform account login; the first information comprises: a user accountinformation of the first electronic device and a first electronic deviceidentifier information; and the sending first information to the servercomprises: sending the first information comprising the user accountinformation of the first electronic device and the first electronicdevice identifier information to the server.
 15. The non-transitorycomputer readable storage medium according to claim 14, wherein theoperations further comprise: after the second electronic device obtainsa user account of the second electronic device to perform account login,receiving the second information that is sent by the second electronicdevice and comprises a user account information of the second electronicdevice; if the user account information of the first electronic deviceand the user account information of the second electronic device aresame, determining that the preset correspondence exists between thesecond information and the first information; and when a browser of thesecond electronic device is in an open state, sending the firstelectronic device identifier information to the second electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device, or, sending thesecond electronic device identifier information comprised in the secondinformation to the first electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device.
 16. The non-transitory computer readable storagemedium according to claim 14, wherein the operations further comprise:generating a 2D code having a first electronic device identifierrepresentation information in the background, displaying the 2D code ina child dialog box of the dialog box; sending the first informationcomprising the first electronic device identifier representationinformation, the user account information and the first electronicdevice identifier information to the server; after the second electronicdevice scans the 2D code and determines the first electronic deviceidentifier representation information, receiving the second informationthat is sent by the second electronic device and comprises the firstelectronic device identifier representation information; if the firstelectronic device identifier representation information in the firstinformation and the first electronic device identifier representationinformation in the second information match each other, determining thatthe preset correspondence exists between the second information and thefirst information; and when a browser of the second electronic device isin an open state, sending the first electronic device identifierinformation to the second electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device, or, sending the second electronic device identifierinformation comprised in the second information to the first electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device.
 17. Thenon-transitory computer readable storage medium according to claim 14,wherein the operations further comprise: sending a signal including afirst electronic device identifier representation information in thebackground, so that the second electronic device in a signal monitoringstate monitors the signal; sending the first information comprising thefirst electronic device identifier representation information, the useraccount information and the first electronic device identifierinformation to the server; after the second electronic device in asignal monitoring state monitors the signal and determines the firstelectronic device identifier representation information, receiving thesecond information that is sent by the second electronic device andcomprises the first electronic device identifier representationinformation; if the first electronic device identifier representationinformation in the first information and the first electronic deviceidentifier representation information in the second information matcheach other, determining that the preset correspondence exists betweenthe second information and the first information; and when a browser ofthe second electronic device is in an open state, sending the firstelectronic device identifier information to the second electronicdevice, to establish the binding relationship between the firstelectronic device and the second electronic device, or, sending thesecond electronic device identifier information comprised in the secondinformation to the first electronic device, to establish the bindingrelationship between the first electronic device and the secondelectronic device.
 18. The non-transitory computer readable storagemedium according to claim 14, wherein the operations further comprise:opening a Location Based Services (LBS) function in the background;sending the first information comprising a location information of thefirst electronic device, a browser open state information, the useraccount information and the first electronic device identifierinformation to the server; and receiving the second information that issent by the second electronic device in which an LBS function is openedand comprises the location information of the second electronic deviceand a browser switch state information; if a location corresponding tofirst location information and a location corresponding to secondlocation information meet a preset location relationship, and thebrowser switch state information and the browser open state informationcorrespond to each other, determining that the preset correspondenceexists between the second information and the first information; andsending the first electronic device identifier information to the secondelectronic device, to establish the binding relationship between thefirst electronic device and the second electronic device, or, sendingthe second electronic device identifier information comprised in thesecond information to the first electronic device, to establish thebinding relationship between the first electronic device and the secondelectronic device.